import { getNotReadOrderNewsLog } from '@/api/shop'
export const tableConfig = {
  hasPage: true,
  request: (params) => {
    return getNotReadOrderNewsLog(params)
  },
  dataParse: (res) => {
    const resData = res.data.data
    const data = {
      list: resData.rows,
      total: resData.total
    }
    return data
  },
  columns: [
    {
      prop: 'goodsName',
      label: '蛋糕名称',
    },
    {
      prop: 'goodsSpecs',
      label: '规格',
    },
    {
      prop: 'regionName',
      label: '地区',
    },
    {
      prop: 'warehouseName',
      label: '仓库',
    },
    {
      prop: 'xmbzNo',
      label: '后台单号',
    },
    {
      prop: 'remarks',
      label: '备注',
    },
    {
      prop: 'productionProcessName',
      label: '状态',
      isSlot: true,
    },
    {
      prop: 'operate',
      label: '操作',
      isSlot: true,
    }
  ]
}